
func int B_AssessEnemy()
{
	var C_Npc mgo;
	var C_Npc lar;
	if(Npc_IsPlayer(other) && (ALARMONPRISON == TRUE) && (CurrentLevel == NEWWORLD_ZEN) && ((self.guild == GIL_PAL) || (self.guild == GIL_MIL)))
	{
		ALARMONPRISON = FALSE;
		B_Attack(self,other,AR_UseMob,0);
		return TRUE;
	};
	if(other.guild == GIL_MEATBUG)
	{
		return FALSE;
	};
	if((STARTBIGBATTLE == TRUE) && (CANATTACKBIGBATTLE == FALSE) && (other.guild == GIL_ORC))
	{
		return FALSE;
	};
	if(C_BodyStateContains(other,BS_SNEAK) || C_BodyStateContains(other,BS_STAND))
	{
		if(!Npc_CanSeeNpc(self,other))
		{
			return FALSE;
		};
	};
	if((PRESTARTBIGBATTLE == TRUE) && (STARTBIGBATTLE == FALSE) && (other.guild == GIL_ORC) && (Npc_GetDistToWP(self,"BIGFIGHT") < 5000))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(SLD_801_Torlof)) && (TORLOFCAPTURED == TRUE) && (TORLOFISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DJG_705_Angar_NW)) && (ANGARCAPTURED == TRUE) && (ANGARISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(SLD_811_Wolf)) && (WOLFCAPTURED == TRUE) && (WOLFISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(VLK_449_Lares)) && (LARESCAPTURED == TRUE) && (LARESISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Pal_207_Girion)) && (GIRIONCAPTURED == TRUE) && (GIRIONISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(SLD_809_Bennet)) && (BENNETCAPTURED == TRUE) && (BENNETISFREE == FALSE))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(dmt_121200_dagot)) && (other.guild == GIL_DEMON))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(KDW_14000_Addon_Saturas_ADW)) && (Hlp_GetInstanceID(other) == Hlp_GetInstanceID(none_103_dragon_gold)))
	{
		return FALSE;
	};
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(NONE_100_Xardas)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(none_102_kreol)) || (self.guild == GIL_KDM))
	{
		if((other.guild == GIL_SKELETON) || (other.guild == GIL_ZOMBIE) || (other.guild == GIL_DEMON) || (other.guild == GIL_GOBBO_SKELETON))
		{
			return FALSE;
		};
	};
	if(((Hlp_GetInstanceID(other) != Hlp_GetInstanceID(hero)) && (other.guild < GIL_SEPERATOR_HUM) && ((self.aivar[AIV_NoFightParker] == TRUE) || (other.aivar[AIV_NoFightParker] == TRUE))) || ((other.guild > GIL_SEPERATOR_HUM) && (other.aivar[AIV_NoFightParker] == TRUE)))
	{
		return FALSE;
	};
	if((C_BodyStateContains(other,BS_SWIM) || C_BodyStateContains(other,BS_DIVE)) && (self.aivar[AIV_MM_FollowInWater] == FALSE))
	{
		return FALSE;
	};
	if(Npc_GetHeightToNpc(self,other) > PERC_DIST_HEIGHT)
	{
		return FALSE;
	};
	if(self.aivar[AIV_PARTYMEMBER] == TRUE)
	{
		if(Npc_GetDistToNpc(self,other) > 1500)
		{
			return FALSE;
		};
		if(!Npc_CanSeeNpc(self,other))
		{
			return FALSE;
		};
	};
	if(C_PlayerIsFakeBandit(self,other) && (self.guild == GIL_BDT))
	{
		return FALSE;
	};
	mgo = Hlp_GetNpc(MagicGolem);
	lar = Hlp_GetNpc(VLK_449_Lares);
	if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(lar)) && (Hlp_GetInstanceID(other) == Hlp_GetInstanceID(mgo)))
	{
		return FALSE;
	};
	if(((self.aivar[AIV_EnemyOverride] == TRUE) || (other.aivar[AIV_EnemyOverride] == TRUE)) && (other.guild < GIL_SEPERATOR_HUM))
	{
		return FALSE;
	};
	if(Npc_GetAttitude(self,other) != ATT_HOSTILE)
	{
		return FALSE;
	};
	if(C_NpcIsGateGuard(self))
	{
		return FALSE;
	};
	if(Npc_IsPlayer(other) && (self.npcType == NPCTYPE_FRIEND))
	{
		return FALSE;
	};
	if((SAFEFLAGPALADIN == TRUE) && (PALADINAWAYORC == FALSE))
	{
		if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(PAL_250_Garond)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(PAL_251_Oric)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(PAL_252_Parcival)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(PAL_268_Udar)))
		{
			return FALSE;
		};
	};
	if((BEGINWATERRITUAL == TRUE) && (STOPWATERRITUAL == FALSE))
	{
		if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(KDW_14000_Addon_Saturas_ADW)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(KDW_14020_Addon_Nefarius_ADW)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(KDW_14010_Addon_Cronos_ADW)) || (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(KDW_14050_Addon_Merdarion_ADW)))
		{
			return FALSE;
		};
	};
	if(Wld_GetGuildAttitude(self.guild,other.guild) != ATT_HOSTILE)
	{
		if((Npc_GetAttitude(self,other) == ATT_HOSTILE) && ((Npc_GetStateTime(self) > 2) || Npc_IsInState(self,ZS_ObservePlayer)) && (Npc_GetDistToNpc(self,other) <= PERC_DIST_INTERMEDIAT))
		{
			B_Attack(self,other,self.aivar[AIV_LastPlayerAR],0);
			return TRUE;
		}
		else
		{
			return FALSE;
		};
	};
	B_Attack(self,other,AR_GuildEnemy,0);
	return TRUE;
};

